﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%namespace YouHP.Atom%>
<%namespace YouHP.Logic%>
<%template _header%>
<link rel="stylesheet" href="/support/common/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/support/common/impromptu.css" type="text/css" />
<script type="text/javascript"" src="/support/common/jquery.js"></script>
<script type="text/javascript"" src="/support/common/impromptu.js"></script>
<script type="text/javascript"" src="/support/common/ui.core.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/support/common/ui.draggable.js"></script> 
<script type="text/javascript" src="/support/common/ui.resizable.js"></script> 
<script type="text/javascript" src="/support/common/ui.dialog.js"></script> 
<script type="text/javascript" src="/support/swfobject/open-flash-chart.js"></script>

<div class="layout-cols2">
	
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
			<div class="pannelbody">
	    
	    <div class="box">
	        <div class="caption">
	            治疗图表
	        </div>
	        <div class="content" style="text-align:center;margin:0 auto">
                <div id="Treatmentchart1"></div>
                <script type="text/javascript">
                    var trmid=getURLParam("trmid");
                    var g_sTreatmentUrl="/Pages/Alpha/TreatmentHistory/TreatmentHistory.aspx?pretype=-1&trmid="+trmid;
                    swfobject.embedSWF("/support/swfchart/open-flash-chart.swf", "Treatmentchart1", "740", "250","9.0.0", "expressInstall.swf",{'id':'1','flashready':'OnTreatmentFlashReady'},{wmode: "transparent"});
                </script>
                <script type="text/javascript" src="/support/swfobject/Treatment.js"></script>
            </div>
	    </div>
	    
	    <div class="box">
	        <div class="caption">
	            治疗信息
	        </div>
	        <div class="content">
	         <%csharp%>  TempUrl = "/TreatmentHistory/Index.aspx";<%/csharp%>

	           <p style="margin-bottom:10px; margin-top:10px;"> <b>{TrmData.Name} -  {TrmData.GeneralName}</b>&nbsp;&nbsp;<a href="{this.GetUrl(TempUrl)}"><font color="blue">返回继续添加治疗</font></a></p>
	            <p style="margin-bottom:10px;">
                <table>
                    <tr>
                        <td>  
	                        <%csharp%>if(CurTrmHistory.EndDate > System.DateTime.Today) { 
	                        <%/csharp%>
                                当前使用剂量：{CurTrmHistory.DataValue}&nbsp;{TrmData.MeasurementUnits}/{CurTrmHistory.Frequency}
	                       <div style="">
								<a href="javascript:StopTreatment('{TrmData.Id}')" ><font color="blue">停止当前使用</font></a>
								<a href="javascript:ChangeDosage('{TrmData.Id}')" ><font color="blue">改变当前使用剂量</font></a>
							</div>
							<%csharp%> } else { 
                            <%/csharp%>
                                已停止使用
	                            <a href="javascript:StartTreatment('{TrmData.Id}', 1, '恢复使用')"><font color="blue">恢复使用</font></a>
	                        <%csharp%> } <%/csharp%>
	                    </td>
	                </tr>
	            </table>
	            </p>
	           
	            <!--TP.LIST 
                   <%HD%><table class="tbl-data">
	                <col style="width:200px;" />
	                <col style="width:160px;" />
	                <thead>
					<tr>
	                    <th>日期</th>
	                    <th>剂量</th>
	                    <th>使用目的</th>
	                    <th>停止原因</th>
                        <th>操作</th>
	                </tr>
	                </thead>
				    <%LB%><%EB%>
                    <tr>    
                        <td><%startdate%>  -- <%enddate%></td>
                        <td><%datavalue%>  <%measurementunit%> / <%frequency%> </td>
                        <td><%userpurpose%></td>
                        <td><%stopreason%></td>
                        <td> 
                            <a href="javascript:EditHistory('<%id%>')" class="selectall">修改</a>
                            <a href="javascript:DelHistory('<%id%>')" class="selectall">删除</a>
                        </td>
                    </tr>
                    <%EE%>                                     
                    <%LE%>
                    <%TL%>
                </table> 
                TP.LIST-->
	           
	           
	        <div style="text-align:right;width:700px">
				<div id="treatment_list"></div>
            <div id="ID_page"></div> 
				
	            <div>
	                 提示：您也可以通过操作 <a href="javascript:StartTreatment('{TrmData.Id}', 0)"><font color="blue">开始使用</font></a> 来添加更多的历史治疗记录！
                </div>
	             				
	          
	        </div>
	    </div>
	</div>
</div>
</div>
</div>	

	
</div>
<div id="DIALOG"><iframe FRAMEBORDER=0 SCROLLING=NO ></iframe></div>
<script type="text/javascript" src="/support/Alpha/Js/treatmenthistory/index.js"></script>
<script type="text/javascript" src="/support/Alpha/Js/treatmenthistory/list.js"></script>
<%template _footer%>
